.class public Lcom/xingbook/paint/view/a;
.super Landroid/app/Dialog;


# instance fields
.field private a:Lcom/xingbook/paint/view/d;

.field private b:I

.field private c:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/xingbook/paint/view/d;I)V
    .locals 0

    invoke-direct {p0, p1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/xingbook/paint/view/a;->c:Landroid/content/Context;

    iput-object p2, p0, Lcom/xingbook/paint/view/a;->a:Lcom/xingbook/paint/view/d;

    iput p3, p0, Lcom/xingbook/paint/view/a;->b:I

    return-void
.end method

.method static synthetic a(Lcom/xingbook/paint/view/a;)Lcom/xingbook/paint/view/d;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/view/a;->a:Lcom/xingbook/paint/view/d;

    return-object v0
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 7

    const/16 v6, 0x1e

    const/16 v5, 0x14

    invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V

    new-instance v0, Lcom/xingbook/paint/view/b;

    invoke-direct {v0, p0}, Lcom/xingbook/paint/view/b;-><init>(Lcom/xingbook/paint/view/a;)V

    new-instance v1, Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/xingbook/paint/view/a;->c:Landroid/content/Context;

    invoke-direct {v1, v2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    new-instance v2, Lcom/xingbook/paint/view/c;

    invoke-virtual {p0}, Lcom/xingbook/paint/view/a;->getContext()Landroid/content/Context;

    move-result-object v3

    iget v4, p0, Lcom/xingbook/paint/view/a;->b:I

    invoke-direct {v2, v3, v0, v4}, Lcom/xingbook/paint/view/c;-><init>(Landroid/content/Context;Lcom/xingbook/paint/view/d;I)V

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    invoke-virtual {v1, v6, v5, v5, v6}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    invoke-virtual {p0, v1}, Lcom/xingbook/paint/view/a;->setContentView(Landroid/view/View;)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/view/a;->setCanceledOnTouchOutside(Z)V

    const-string v0, "\u9009\u62e9\u4e00\u4e2a\u989c\u8272"

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/view/a;->setTitle(Ljava/lang/CharSequence;)V

    return-void
.end method
